package com.fs;

import java.util.Random;
import java.util.Scanner;

public class priz_draw {

    public static void main(String[] args) {
        int[] prize = {9, 666, 188, 520, 99999};

        draw(prize);
    }

    public static void draw(int[] prize) {

        for ( int i = 0; i <prize.length; i++) {

            System.out.println("请按任意键开始抽检！");
            Scanner user = new Scanner(System.in);
            String a=user.next();

            Random r = new Random();

            while (true) {
                int b = r.nextInt(prize.length);
                int money=prize[b];
                if(money!=0)
                {
                    System.out.println("恭喜你，抽中："+money);
                   prize[b]=0;
                    break;
                }

            }

            System.out.println("活动结束！");
        }
    }
}